https://www.allaboutcircuits.com/worksheets/flip-flop-circuits/